package com.dxy.df.constants;

public enum ErrorEnum {


    /**a*/
    MESSAGE_CODE_ERROR1(-1, "短信验证码发送次数超出限制"),
    MESSAGE_CODE_ERROR2(-1, ""),
    MESSAGE_CODE_ERROR3(-1, ""),


    CAPTCHA_ERROR1(-1001001,"验证码不正确"),
    ANALYTIC_DATA_ERROR(-1001002,"数据分析异常"),

    USER_CASE_NOT_EXIST(-1001101,"禁止审核改病例，病例不存在或已被用户删除"),


    FILE_ERROR1(-50, "文件为空"),


    SUCCESS(0, "成功"),
    UNKNOW_ERROR(-1, "未知错误"),
    ILLEAGE_PARAM(-2, "参数非法"),
    DATA_ADD_ERROR(-3, "数据保存异常"),
    USER_NOT_EXISTS(-4, "用户不存在"),
    USER_NOT_LOGIN(-5, "用户不存在"),
    LOGIN_ERROR(1001, "账号密码错误"),
    NOT_ACCEPT_RICE_TIME(1002, "非收饭时间"),
    HAD_ACCEPT_RICE_ASK(1003, "已经发过收饭信息了"),
    HAD_GIVEN_RICE_ASK(1004, "已经发过出饭信息了"),
    CSRF_VALIDATE_ERROR(-7, "请求非法，csrf未通过"),
    USER_AUTHORITY_ERROR(-8, "权限异常"),
    USER_NO_AUTHORITY(-9, "无权限"),
    FILE_NOT_EXISTS(-10, "文件不存在"),
    CHARASET_ILLEGAL(-21, "非法字符"),
    WHITE_LIST_NOT_EXISTS(-22, "非白名单用户"),
    HAS_EXIST(-24, "数据库中已存在该记录"),

    UCS_CODE_GEN_ERROR(-601, "ucs code gen error !"),

    DD_NOT_EXISTS(-11, "文件不存在");




    private Integer code;
    private String msg;

    ErrorEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
